package com.cyd.demo5.listener;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;
import javax.servlet.annotation.WebListener;

/**
 * @ClassName : com.cyd.demo5.listener.TwoListener
 * @Description : 类描述
 * Created by cyd on 2021-05-13 23:16:12
 */
@WebListener(value = "twoListener")
public class TwoListener implements ServletContextAttributeListener {
    @Override
    public void attributeAdded(ServletContextAttributeEvent event) {
        System.out.println("添加了属性");

    }

    @Override
    public void attributeRemoved(ServletContextAttributeEvent event) {
        System.out.println("删除了属性");
    }

    @Override
    public void attributeReplaced(ServletContextAttributeEvent event) {
        System.out.println("修改了属性");
    }
}
